* {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
}

body {
  background-color: #f3f3f3;
}

#cbBars {
  display: none;
}

.wrapper input:checked ~ .main {
  left: 200px;
}

.wrapper input:checked ~ .sidebar ul {
  width: 200px;
}

.wrapper input:checked ~ .sidebar ul li:first-child a {
  flex-direction: row;
  justify-content: flex-start;
}

.wrapper input:checked ~ .sidebar ul li:first-child a span {
  display: block;
}

.wrapper input:checked ~ .sidebar ul li a {
  flex-direction: row;
  justify-content: flex-start;
}

.wrapper input:checked ~ .sidebar ul li a i {
  margin: 0 15px 0 30px;
}

.wrapper .main {
  position: absolute;
  top: 0;
  left: 70px;
  right: 0;
  font-size: 30px;
  color: #5a738e;
  height: 50px;
  background-color: #eee;
  padding-left: 20px;
  border: 1px solid #ddd;
  transition: all .5s ease;
}

.wrapper .main .bars {
  cursor: pointer;
}

.wrapper .sidebar ul {
  list-style: none;
  width: 70px;
  height: 100vh;
  background-color: #2a3f54;
  transition: all .5s ease;
}

.wrapper .sidebar ul li {
  height: 70px;
}

.wrapper .sidebar ul li:first-child a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 15px;
}

.wrapper .sidebar ul li:first-child a img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.wrapper .sidebar ul li:first-child a span {
  color: #fff;
  white-space: nowrap;
  padding-left: 10px;
  display: none;
}

.wrapper .sidebar ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  color: #ddd;
  text-decoration: none;
  cursor: pointer;
  transition: all .5s ease;
}

.wrapper .sidebar ul li a i {
  font-size: 25px;
}

.wrapper .sidebar ul li a span {
  font-size: 12px;
  white-space: nowrap;
}

.wrapper .sidebar ul li a:hover, .wrapper .sidebar ul li a.active {
  color: #fff;
  background-color: #35495d;
}
